package concurrent;

//import java.sql.Timestamp;
import java.util.Calendar;
//import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: g705353
 * Date: 11/18/13
 * Time: 11:24 AM
 * To change this template use File | Settings | File Templates.
 */
public class MimicETLDriver {

    private void init(){
        System.out.println("Init");
    }

    public MimicETLDriver(){
        this.init();
    }

    private void execute() throws InterruptedException {
        while(true){
            Thread.sleep(3000);
            System.out.println("RUNNING: " + Calendar.getInstance().getTime().toString());
//            java.util.Date now = new Date();
//            System.out.println("RUNNING: " + new Timestamp(now.getTime()).toString());
//            System.out.println("RUNNING: " + System.currentTimeMillis());
        }
    }

    public static void main(String args[]) throws InterruptedException {
        MimicETLDriver mc = new MimicETLDriver();
        mc.execute();
    }
}

